/**财务管理-零钱API**/
import obj from '@/utils/request'
let {request,baseURL} = obj

//分页查询
export function getRecharge(params) {
  return request({
    url: '/recharge',
    method: 'get',
    params
  })
}
//修改
export function modRecharge(data) {
  return request({
    url: '/recharge',
    method: 'put',
    data
  })
}
//添加
export function addRecharge(data) {
  return request({
    url: '/recharge',
    method: 'post',
    data
  })
}
//删除
export function delRecharge(id) {
  return request({
    url: '/recharge/'+id,
    method: 'delete',
  })
}
//获取流水号
export function getRechargeCode() {
  return request({
    url: '/recharge/code',
    method: 'get',
  })
}
//获取来源用途
export function getRechargeUseType() {
  return request({
    url: '/recharge/useType',
    method: 'get',
  })
}
